import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Main from '@/views/Main'
import TFieldMain from '@/views/tField/TFieldMain'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/main',
      name: 'main',
      component: Main,
      children: [
        {
          path: '/tableFile',
          name: 'tFieldMain',
          component: TFieldMain
        }
      ]
    }

  ]
})
